<?php
/**
 * Translator default controller
 *
 * @package		app
 * @subpackage	Components
 * @link		
 * @author		ducdm87
 * @copyright 	ducdm87@gmail.com
 * @license		Commercial
 */
 
class APPFViewFeed extends APPObject 
{
	var $model	=	null;
	var $tmp	=	null;
	function __construct(){
		
		//set default view to about
		if (!Request::getVar('task') && !Request::getVar('view')) {
//			Request::setVar('task', 'contents');
		}
		parent::__construct();
		
	}
	
	/**
	 * Method to display the view
	 *
	 * @access	public
	 */
	function display()
	{		
		echo 'asd';
	}
	
	function listfeeds()
	{
		$items	=	$this->model->getListFeed();
		require_once (PATH_APP_HELPERS.DS.'href.php');
		$href		=	new href();
		require_once (PATH_APP_VIEWS.DS.'feed'.DS.'tmpl'.DS.$this->tmp.'.php');
	}
	function feeds()
	{
		$arr_data	=	$this->model->getData();
		require_once (PATH_APP_HELPERS.DS.'href.php');
		$href		=	new href();
		require_once (PATH_APP_VIEWS.DS.'feed'.DS.'tmpl'.DS.$this->tmp.'.php');
	}
	function feed()
	{
		$data	=	$this->model->getItem();
		require_once (PATH_APP_HELPERS.DS.'href.php');
		$href		=	new href();
		if ($data)
			require_once (PATH_APP_VIEWS.DS.'feed'.DS.'tmpl'.DS.$this->tmp.'.php');
		else {
			echo 'no data';
		}
		
	}
	
}
?>
